//
//  HMAccount.h
//  黑马微博-wzy
//
//  Created by Mac on 2017/2/9.
//  Copyright © 2017年 Mac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HMAccount : NSObject<NSCoding>

/*
 {
 "access_token" = "2.00ZbHLGDLYpEZB1948f0d2921Ykm6B";
 "expires_in" = 157679999;//过期时间
 "remind_in" = 157679999;
 uid = 2839707357;//user_id / 当前登录用户的ID / 用户的唯一标识
 }
 */

@property (nonatomic, copy) NSString *access_token;
//有效期
@property (nonatomic, copy) NSString *expires_in;

@property (nonatomic, copy) NSString *uid;


//账号过期时间
@property (nonatomic, copy) NSDate *expires_time;

//用户昵称
//首页 nav title要显示为用户昵称,为了以后每次进来title直接显示用户昵称,所以先存储,然后以后每次显示首页的时候直接获取显示
@property (nonatomic, copy) NSString *name;

+ (instancetype)accountWithDict:(NSDictionary *)dic;

@end
